package com.prize.controller.v1;

import com.prize.dtos.ResponseResult;
import com.prize.login.apis.SysVerificationControllerApi;
import com.prize.service.SysVerificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @descriptions: 系统验证码
 * @author: yunqiang
 * @date: 2022/5/28 22:03
 */
@Api(tags = {"后台登录：验证码"})
@RestController
@RequestMapping("/api/v1/captcha")
public class SysVerificationController implements SysVerificationControllerApi {


    @Autowired
    private SysVerificationService sysVerificationService;

    @Override
    @GetMapping("/getCode")
    @ApiOperation(value = "获取系统验证码")
    public ResponseResult getCode() {
        return sysVerificationService.getCode();
    }
}
